<layout name="Public/base" />
<div class="row">
	<include file="Index/left" />
	<div class="span9">
		<div class="page-main">
			<div class="title">{$mini_title}</div>
			<div class="content">
				<div class="fast-action">
					<a class="btn btn-large btn-success" href="{:U('add')}"><i class="icon-plus-2"></i>添加公众账号</a>
				</div>
				<table class="border striped">
					<thead>
						<tr>
							<th>公众号名称</th>
							<th class="center">类型</th>
							<th>创建时间<br/>认证时间</th>
							<th class="center">API接口</th>
							<th class="center">操作</th>
						</tr>
					</thead>
					<tbody>
						<empty name="__LIST__">
						<tr>
							<td colspan="5" class="center">您还没有托管的公众号！</td>
						</tr>
						<else/>
						<volist name="__LIST__" id="vo">
						<tr>
							<td>{$vo.title}</td>
							<td class="center">{$vo.type}</td>
							<td>
							{$vo.create_time|time_format}<br/>
							<eq name="vo.verified" value="0">未验证公共号<else/>{$vo.verify_time|time_format}</eq>
							</td>
							<td class="center"><a class="btn btn-save" href="{:U('api?appid='.$vo['id'])}">API</a></td>
							<td class="center">
								<a class="btn btn-save" href="{:U('edit?appid='.$vo['id'])}">编辑</a>
								<a class="btn btn-success" href="{:U('Manage/index?appid='.$vo['id'])}">管理</a>
								<a class="btn btn-error" href="{:U('del?appid='.$vo['id'])}">删除</a>
							</td>
						</tr>
						</volist>
						</empty>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>